/* 修复input 背景不协调 和光标变色 */
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */

$bg: #283443;
$light_gray: #fff;
$cursor: #fff;

@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
  .login-container .el-input input {
    color: $cursor;
  }
}

/* reset element-ui css */
.login-container {
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;

  .square-box {
    width: 9%;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;

    .img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none;
      user-select: none;
    }
  }

  /**                                       NEW                                                    **/

  .left-box {
    // width: 61.7%;
    height: 100vh;
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    .img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      pointer-events: none;
      user-select: none;
    }
  }

  .right-box {
    height: 100vh;
    width: 29.3%;
    // background: linear-gradient(138deg, #f6f9ff 0%, #eaf1fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 3;
    margin-right: 9%;

    .icp {
      font-weight: 400;
      font-size: 14px;
      color: #000000;
      position: absolute;
      bottom: 28px;
      left: 50%;
      transform: translate(-50%, 0);
      width: 100%;
      text-align: center;
    }

    .logo {
      width: 300px;
      margin-bottom: 20px;
      display: flex;

      img {
        width: 150px;
      }
    }

    .navback {
      display: flex;
      align-items: center;
      left: 20px;
      top: 10px;
      color: #33383e;
      font-size: 14px;
      position: absolute;
      cursor: pointer;
    }

    .form-box {
      padding: 30px;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0px 0px 10px 0px rgba(208, 208, 208, 0.4);

      .title {
        width: 330px;
        font-weight: 600;
        font-size: 32px;
        color: #000000;
        margin-bottom: 24px;
      }

      .loginForm {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        .el-input {
          width: 330px;

          ::v-deep .el-input__inner {
            height: 55px;
            background: #f8fafc;
            border-radius: 8px;
            border-color: rgba(0, 0, 0, 0);
          }

          .btn {
            background-color: #3B75FF;
            color: #fff;
            margin-left: -5px;
            height: 45px;
          }
        }

        ::v-deep .el-input-group__append {
          background-color: rgba(0, 0, 0, 0);
          border: none;
        }

        ::v-deep .el-input__inner {
          border-radius: 4px;
        }
      }

      .bottom {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;

        .reg {
          padding: 0;
          color: #2254f4;
          font-size: 14px;
          font-style: normal;
          font-weight: 400;
          line-height: 22px;
          cursor: pointer;
        }

        .reg:hover {
          text-decoration: underline;
        }
      }

      .tips {
        font-size: 12px;
        margin-bottom: 10px;
        color: #7f8792;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        width: 330px;
        text-align: right;

        span {
          font-weight: 400;
          font-size: 14px;
          color: #3b75ff;
          cursor: pointer;
        }
      }
    }

  }
}

$bg: #2d3a4b;
$dark_gray: #889aa4;
$light_gray: #eee;